<?php

use think\facade\Route;



Route::group('admin', function () {
    //活动分类---管理后台
    Route::group('activityClassifyAdmin' ,function() {
        Route::get('listAll' ,'AdminActivityClassify/listActivityClassify');
        Route::get('listAllForSelect' ,'AdminActivityClassify/listAllForSelect');
        Route::get('getActivityClassify' ,'AdminActivityClassify/getActivityClassify');
        Route::post('createActivityClassify' ,'AdminActivityClassify/createActivityClassify');
        Route::post('changeStatus' ,'AdminActivityClassify/changeStatus');
        Route::post('updateActivityClassify' ,'AdminActivityClassify/updateActivityClassify');
    });

    //报名内容---管理后台
    Route::group('activityItemAdmin' ,function() {
        Route::get('listAllWithPage' ,'AdminActivityItem/listAllWithPage');
        Route::get('getAllNoPage' ,'AdminActivityItem/getAll');
        Route::get('getOne' ,'AdminActivityItem/getOne');
        Route::post('createOne' ,'AdminActivityItem/createOne');
        Route::post('changeStatus' ,'AdminActivityItem/changeStatus');
        Route::post('updateOne' ,'AdminActivityItem/updateOne');
    });


    //活动管理---后台
    Route::group('activityAdmin', function () {
        Route::get('listAll' ,'AdminActivity/listAll');
        Route::get('getOne' ,'AdminActivity/getOne');

        Route::post('createOne' ,'AdminActivity/createOne');
        Route::post('changeStatus' ,'AdminActivity/changeStatus');
        Route::post('updateOne' ,'AdminActivity/updateOne');
    });


    //活动报名记录---后台
    Route::group('activityUserRecordAdmin', function () {
        Route::get('getTableHead', 'AdminActivityUserRecord/getTableHead');
        Route::get('listByActivity', 'AdminActivityUserRecord/listByActivity');

        Route::get('userRecordExcel', 'AdminExcel/userRecordExcel');
    });


});



Route::group('app', function () {
    //活动分类---WxApp端
    Route::group('activityClassify' ,function() {
        Route::get('' ,'WxAppActivityClassify/listActivityClassify');
    });


//报名内容---WxApp端
    Route::group('activityItem' ,function() {
        Route::get('getAll' ,'WxAppActivityItem/getAll');
    });


//活动管理---WxApp端
    Route::group('activity', function () {
        Route::get('' ,'WxAppActivity/listAll');
        Route::get('getOne' ,'WxAppActivity/getOne');
        Route::post('createOne' ,'WxAppActivity/createOne');
        Route::post('updateOne' ,'WxAppActivity/updateOne');
    });


//活动报名----WxApp端
    Route::group('activityUserRecord', function () {
        Route::get('getSignItemByActivity', 'WxAppActivityUserRecord/getSignItemByActivity');
        Route::get('listByActivity', 'WxAppActivityUserRecord/listByActivity');
        Route::post('signOneActivity', 'WxAppActivityUserRecord/signOneActivity');
        Route::get('mySignActivity', 'WxAppActivityUserRecord/mySignActivity');
        Route::post('signIn', 'WxAppActivityUserRecord/signIn');
        Route::post('activityRecordSignInQr', 'WxAppActivityUserRecord/activityRecordSignInQr');
        Route::get('activityRecordSignInQrList', 'WxAppActivityUserRecord/activityRecordSignInQrList');
        Route::get('activityDetail', 'WxAppActivityUserRecord/activityDetail');
    });


});









//===========================================oldApi


//活动分类---WxApp端
Route::group('activityClassify', function () {
    Route::get('', 'WxAppActivityClassify/listActivityClassify');
});

//活动分类---管理后台
Route::group('activityClassifyAdmin', function () {
    Route::get('listAll', 'AdminActivityClassify/listActivityClassify');
    Route::get('listAllForSelect', 'AdminActivityClassify/listAllForSelect');
    Route::get('getActivityClassify', 'AdminActivityClassify/getActivityClassify');
    Route::post('createActivityClassify', 'AdminActivityClassify/createActivityClassify');
    Route::post('changeStatus', 'AdminActivityClassify/changeStatus');
    Route::post('updateActivityClassify', 'AdminActivityClassify/updateActivityClassify');
});

//报名内容---WxApp端
Route::group('activityItem', function () {
    Route::get('getAll', 'WxAppActivityItem/getAll');
});

//报名内容---管理后台
Route::group('activityItemAdmin', function () {
    Route::get('listAllWithPage', 'AdminActivityItem/listAllWithPage');
    Route::get('getAllNoPage', 'AdminActivityItem/getAll');
    Route::get('getOne', 'AdminActivityItem/getOne');
    Route::post('createOne', 'AdminActivityItem/createOne');
    Route::post('changeStatus', 'AdminActivityItem/changeStatus');
    Route::post('updateOne', 'AdminActivityItem/updateOne');
});


//活动管理---WxApp端
Route::group('activity', function () {
    Route::get('', 'WxAppActivity/listAll');
    Route::get('getOne', 'WxAppActivity/getOne');
    Route::post('createOne', 'WxAppActivity/createOne');
    Route::post('updateOne', 'WxAppActivity/updateOne');
});


//活动管理---后台
Route::group('activityAdmin', function () {
    Route::get('listAll', 'AdminActivity/listAll');
    Route::get('getOne', 'AdminActivity/getOne');

    Route::post('createOne', 'AdminActivity/createOne');
    Route::post('changeStatus', 'AdminActivity/changeStatus');
    Route::post('updateOne', 'AdminActivity/updateOne');
});

//活动报名----WxApp端
Route::group('activityUserRecord', function () {
    Route::get('getSignItemByActivity', 'WxAppActivityUserRecord/getSignItemByActivity');
    Route::get('listByActivity', 'WxAppActivityUserRecord/listByActivity');
    Route::post('signOneActivity', 'WxAppActivityUserRecord/signOneActivity');
    Route::get('mySignActivity', 'WxAppActivityUserRecord/mySignActivity');
    Route::post('signIn', 'WxAppActivityUserRecord/signIn');
    Route::post('activityRecordSignInQr', 'WxAppActivityUserRecord/activityRecordSignInQr');
    Route::get('activityRecordSignInQrList', 'WxAppActivityUserRecord/activityRecordSignInQrList');
    Route::get('activityDetail', 'WxAppActivityUserRecord/activityDetail');

    Route::get('signRecordInfo', 'WxAppActivityUserRecord/recordInfo');
});

//活动报名记录---后台
Route::group('activityUserRecordAdmin', function () {
    Route::get('getTableHead', 'AdminActivityUserRecord/getTableHead');
    Route::get('listByActivity', 'AdminActivityUserRecord/listByActivity');


});

